//PSClient.java
package prototype.record;

import java.io.IOException;

/**
 *@author:youtubezou
 *@version:2012-7-16
 */
public class PSClient {
	private static Prototype original = null;
	private static PrototypeManager mgr = new PrototypeManager();
	
	public static void main(String[] args) throws IOException {
		original = new ConcretePrototype("Tony");
		Prototype copy = (Prototype) original.clone();
		
		mgr.add(copy);
		
		
		System.out.println(original);
		System.out.println(copy);
		
		System.out.println("original changed");
		System.in.read();
		original.setTime();
		
		copy = (Prototype) original.clone();
		mgr.add(copy);
		
		for(Prototype item : mgr.getVector())
			System.out.println(item);
		
	}
}
